from access.core.codesnippet import CodeSnippet
import unittest

class CodeSnippetTest(unittest.TestCase):
  def testConstruction (self):
    code_snippet = CodeSnippet(ID = 'ID',
                               value = 'value')
    self.assertEqual(code_snippet.ID,
                     'ID',
                     'ID field not set correctly.')
    self.assertEqual(code_snippet.value,
                     'value',
                     'Value field not set correctly.')
